module.exports = class extends think.Logic {
  addAction() {
    this.rules = {
      name: {
        required: true,
        aliasName: "菜单名称"
      },
      url: {
        required: true,
        aliasName: "链接"
      }
    };
  }

  updateAction() {
    this.rules = {
      id: {
        required: true,
        aliasName: "主键"
      }
    };
  }
};
